<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<ul>
				<li txt="haha" v-for="(item, index) of todos">{{index+ "," + item.text}}</li>
			</ul>
		</div>
		<script src="../js/jquery-3.5.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			// $("#app").children().each(function(index, item) {
			// 	item.children()
			// });
			// let $li = $("#app").find("ul").find("li");
			// console.log($li[0]);
			// console.log($li[0].getAttribute["h"]);
			// console.log($li[0].attributes);
			// for (let item in $li[0].getAttribute("v-for")) {
			// 	console.log(item.value);
			// }
			let li = document.getElementsByTagName("li");
			btn_click(li[0]);
			function btn_click(view) {
				console.log(view);
				console.log(view.getAttribute("v-for"));
				console.log(view.getAttribute("value"));
			}
		</script>
	</body>
</html>
